package com.ruoyi.mall.admin.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.mall.api.RemoteShoppingCartService;
import com.ruoyi.mall.api.RemoteTestService;
import com.ruoyi.mall.api.entity.UserAddress;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/test")
@Api(value = "test", tags = "测试远程端口")
public class TestController {
    @DubboReference
    private RemoteTestService testService;


    @ApiOperation(value = "远程端口")
    @GetMapping("/port")
    public R getPort() {
        return R.ok(testService.getPort());
    }

}
